<?php if ($products): ?>
  <?php foreach ($products as $product): ?>
      <li style="height:170px;">
        <a style="display:block; height:134px; position:relative;" href="javascript:void(0);" data-block="product-edit-<?php echo $product['id']; ?>" >
          <img style="position:absolute;top:0;left:0;bottom:0;right:0;margin:auto;max-height: 136px;" src="<?php echo base_url("upload/booth/{$_SESSION['userLoggedIn']['id']}/products/avatar/{$product['id']}/{$product['avatar']}"); ?>">
        </a>
        <div class="caption">
          <div style="margin-top: 6px; border:1px dashed #C6C6C6"></div>
          <h6><?php echo $product['name'] ?></h6>
        </div>
      </li>
  <?php endforeach; ?>
<?php endif; ?> 